<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

// 前端路由
Route::group('api', function () {
   Route::post('auth-login','index/Api/authLogin'); // 微信授权登录
   Route::post('benediction','index/Api/benediction'); // 微信授权登录

   Route::post('upload-file','index/Api/uploadFile'); // 上传文件
   Route::post('get-weather','index/Api/getWeather'); // 获取天气预报

   Route::post('get-user-book','index/Api/getUserBook')->middleware('Web'); // 获取我的账本列表
   Route::post('get-book-info','index/Api/getBookInfo')->middleware('Web'); // 获取我的账本详情
   Route::post('set-book-edit','index/Api/setBookEdit')->middleware('Web'); // 添加修改账本

   Route::post('get-tally-main-total','index/Api/getTallyMainTotal')->middleware('Web'); // 获取账单统计
   Route::post('get-tally-main-list','index/Api/getTallyMainList')->middleware('Web'); // 获取账单列表
   
   Route::post('get-category-list','index/Api/getCategoryList')->middleware('Web'); // 获取分类列表
   Route::post('set-category-edit','index/Api/setCategoryEdit')->middleware('Web'); // 添加修改记分类


   Route::post('set-tally-edit','index/Api/setTallyMainEdit')->middleware('Web'); // 添加修改记账信息
   Route::post('get-tally-info','index/Api/getTallyMainInfo')->middleware('Web'); // 获取记账信息
   

   Route::post('get-user-info','index/Api/getUserInfo')->middleware('Web'); // 获取我的个人信息
   Route::post('set-user-info','index/Api/setUserInfo')->middleware('Web'); // 更新个人信息
});

